package com.yunyao.dao.service.bamu;

import com.yunyao.dao.model.BamuPurchaseContract;
import com.yunyao.dao.model.BamuSaleContract;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * <p>
 * 销售合同表 服务类
 * </p>
 *
 * @author xingjishuai
 * @since 2024-07-02
 */
@Validated
public interface IBamuSaleContractService extends IService<BamuSaleContract> {

    BamuSaleContract getByIdNoDelete(String id);

    void updateTotalPriceAndNumByContractId(String contractId);

    void updateBindById(String id);

    void updateUnBindById(String id);

    void updateTotalRealPriceAndNumByContractId(String contractId);

    List<String> findByContractId(@NotNull String contractId);

    List<BamuSaleContract> listById(String Id);
}
